<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>SnapShotControl: Marker Styles </title>
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAAjU0EJWnWPMv7oQ-jjS7dYxQGj0PqsCtxKvarsoS-iqLdqZSKfxRdmoPmGl7Y9335WLC36wIGYa6o5Q" type="text/javascript"></script>
    <script type="text/javascript">
    document.write('<script type="text/javascript" src="../src/snapshotcontrol'+(document.location.search.indexOf('packed')>-1?'_packed':'')+'.js"><'+'/script>');
  </script>
    <script type="text/javascript">

    var snapShotControl = null;

    function initialize() {
      var map = new GMap2(document.getElementById("map_canvas"));
      map.setCenter(new GLatLng(35.676148, 139.74479), 1);

      // add control
      snapShotControl = new SnapShotControl();
      map.addControl(snapShotControl);

      var latlngs = [];
      latlngs.push(new GLatLng(35.676148, 139.74479));
      latlngs.push(new GLatLng(25.48295117535531, 118.30078125));
      latlngs.push(new GLatLng(-32.39851580247401, 135.17578125));
      latlngs.push(new GLatLng(37.43997405227057, -121.9921875));
      var line = new GPolyline(latlngs, "red", 10, 1);
      map.addOverlay(line);


      /*
       *  Add markers
       */
      for (var i = 0; i < latlngs.length; i++) {
        var marker = new GMarker(latlngs[i]);
        if (i == 0) {
          marker.ssColor = "blue";
          marker.ssCharacter = "s";
        } else if (i == latlngs.length - 1) {
          marker.ssColor = "orange";
          marker.ssCharacter = "g";
        } else {
          marker.ssSize = "mid";
          marker.ssCharacter = "n";
        }
        map.addOverlay(marker);
      }
    }
    </script>
  </head>
  <body onload="initialize()" onunload="GUnload()">
    <div id="map_canvas" style="width: 400px; height: 400px"></div>
  </body>
</html>
